If there is a mistake welcome correct, look forward to your valuable advice.
Cloud-init is a script that activates and initializes virtual machines, operates on virtual machines when the virtual machine is started, and is highly functional and
Android INIT process (2); Initialization language (init. Rc) Parsing
The software version used in this article
Android: 4.2.2
Linux Kernel: 3.1.10
This article and several subsequent articles will analyze the initialization (init) process of Android
1. What is INIT: Init is an indispensable program in Linux. The INIT process is a user-level process started by the kernel. After the kernel is started by itself (it has been loaded into the memory, started to run, and initialized to all the
BusyboxOfInit
In addition to basic commands, busybox also supports the init function. Like other init functions, busybox init also completes system initialization and pre-shutdown, we know that after the Linux kernel is loaded, the machine transfers
Linux Run LevelLinux starts running at one level, and these run levels are listed below:0 System Stop1 Single user system, no login required2 Multi-user system but NFS not supported, command-line mode login3 full multi-user mode, command-line mode
This code was encountered in the dictionary-to-model:1#import"HMAppInfo.h"2 3 @implementation Hmappinfo4 5-(Instancetype) Initwithdict: (Nsdictionary *) Dict6 {7 //Self is the object8Self =[Super init];9 if(self) {Ten //assign a
Objective-c's recommended Init method is as follows:-(ID) init{if (self = [super init]){To initialize a subclass by adding a property}return self;}Here are a few questions,1. The role of [Super Init]:The object-oriented embodiment, first uses the
1. If init:0The system shuts down automatically after a reboot.2. If init:1After rebooting the system into single-user mode, the default prompt is sh-3.00#, the result of input TTY is/dev/console, the result of input runlevel is 1 S, where 1
Init. RC consists of many actions and services.
Each statement occupies one row and each keyword is separated by spaces. The backslash (for example,/n) in the C Specification will be ignored (backslash escapes) and is considered as a space. Double
Features OverviewThe init process is the first process launched by the Android kernel, with a process number (PID) of 1, which is the ancestor of all the processes in the Android system, so it is shouldering the important responsibility of system
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.